<?php 
/**
 * 我的收入
 * 
 */
require_once(dirname(__FILE__)."/config.php");
require_once(DEDEINC."/datalistcp.class.php");
CheckRank(0,0);
$menutype = 'shouyi';
setcookie("ENV_GOBACK_URL",GetCurUrl(),time()+3600,"/");
if(!isset($dopost)) $dopost = '';

/**
 *  获取状态
 *
 * @param     string  $sta  状态ID
 * @return    string
 */

$row = $dsql->GetOne("SELECT COUNT(aid) FROM `#@__member_stow` WHERE mid='$mid'");
$datatj = $row['COUNT(aid)'];
$typemsg = '';

if($dopost=='')
{
	$sql = "select sr.*,arc.title from `#@__shouru` sr
        left join `#@__archives` arc on arc.id=sr.aid
        WHERE sr.mid='".$cfg_ml->M_ID."' order by sr.addtime desc ";
    $dlist = new DataListCP();
    $dlist->pageSize = 20;
    $dlist->SetTemplate(DEDEMEMBER."/templets/shouyi.htm");    
    $dlist->SetSource($sql);
    $dlist->Display(); 
    exit();
}